import pytest
from selenium import webdriver
from yuekaomoni2.Page import Page

@pytest.fixture(scope='function')
def driver():
    driver=webdriver.Chrome()
    driver.get('https://126.com/')
    driver.maximize_window()
    yield driver
    driver.quit()

def test_126_login(driver):
    po1=Page(driver)
    po1.a126_login()